package com.qfedu.point.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.qfedu.common.core.entity.PointRule;
import com.qfedu.point.mapper.PointRuleMapper;
import com.qfedu.point.service.PointRuleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 以梦为马，以汗为泉，不忘初心，不负韶华
 *
 * @author zqh (ZQH)
 * @version 1.0
 * @date 2025/6/16 19:13
 */
@Service
public class PointRuleServiceImpl implements PointRuleService {
    @Resource
    private PointRuleMapper pointRuleMapper;

    @Override
    public PointRule ruleInfoByType(Integer pointType) {
        pointRuleMapper.selectOne(Wrappers.lambdaQuery(PointRule.class)
                .eq(PointRule::getPointType, pointType));
        return null;
    }
}